/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.oea.struts.forms;

//import static com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.Int;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
//import org.apache.struts.action.ActionMessage;

/**
 *
 * @author User
 */
public class FacultyAssignSubjectsForm extends org.apache.struts.action.ActionForm {

    private Long subid;
    private int semester;
    private Long brid;
    private Long fid;
    private int nooflectures;
    private int nooflabs;
    private Long divid;

    public Long getDivid() {
        return divid;
    }

    public void setDivid(Long divid) {
        this.divid = divid;
    }

    public Long getFid() {
        return fid;
    }

    public void setFid(Long fid) {
        this.fid = fid;
    }

    public Long getSubid() {
        return subid;
    }

    public void setSubid(Long subid) {
        this.subid = subid;
    }

    public int getSemester() {
        return semester;
    }

    public void setSemester(int semester) {
        this.semester = semester;
    }

    public Long getBrid() {
        return brid;
    }

    public void setBrid(Long brid) {
        this.brid = brid;
    }

    public int getNooflectures() {
        return nooflectures;
    }

    public void setNooflectures(int nooflectures) {
        this.nooflectures = nooflectures;
    }

    public int getNooflabs() {
        return nooflabs;
    }

    public void setNooflabs(int nooflabs) {
        this.nooflabs = nooflabs;
    }

    /**
     *
     */
    public FacultyAssignSubjectsForm() {
        super();
        // TODO Auto-generated constructor stub
    }

    /**
     * This is the action called from the Struts framework.
     *
     * @param mapping The ActionMapping used to select this instance.
     * @param request The HTTP Request we are processing.
     * @return
     */
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        ActionErrors errors = new ActionErrors();
        /* if (getName() == null || getName().length() < 1) {
         errors.add("name", new ActionMessage("error.name.required"));
         // TODO: add 'error.name.required' key to your resources
         }*/
        return errors;
    }

}
